package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.biz.FinancialInBillForm;
import com.sihai.ehr.model.biz.FinancialInBillFormAuditing;
import com.sihai.ehr.model.biz.FinancialInBillFormDetail;
import com.sihai.ehr.model.sys.User;
import com.sihai.ehr.web.pojo.SearchFormPojo;

import java.util.List;

/**
 * author: wxn
 * since: 13-4-14 下午12:13
 * 财务签核系统 - 财务报支单Service
 */
public interface FinancialInBillFormService {
    void save(FinancialInBillForm financialInBillForm, List<FinancialInBillFormDetail> details)throws Exception;

    FinancialInBillForm get(Long id)throws Exception;

    boolean delete(String ids)throws Exception;

    LimitedList<FinancialInBillForm> findFinancialInBillForms(User user, SearchFormPojo searchFormPojo, Limit limit, Sorter sorter)throws Exception;

    List<List<FinancialInBillFormAuditing>> findFinancialInBillFormAuditing(Long financialInBillForm)throws Exception;

    void saveFinancialInBillFormAuditingProcess(Long financialInBillFormId)throws Exception;

    List<FinancialInBillFormDetail> findFinancialInBillFormDetails(FinancialInBillForm financialInBillForm);
}
